using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Collections;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class ShakeTranImgGetResponse : GeneratedMessageLite<ShakeTranImgGetResponse, ShakeTranImgGetResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<ShakeTranImgGetResponse, ShakeTranImgGetResponse.Builder>
		{
			private bool resultIsReadOnly;
			private ShakeTranImgGetResponse result;
			protected override ShakeTranImgGetResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override ShakeTranImgGetResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override ShakeTranImgGetResponse DefaultInstanceForType
			{
				get
				{
					return ShakeTranImgGetResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public string PageUrl
			{
				get
				{
					return this.result.PageUrl;
				}
				set
				{
					this.SetPageUrl(value);
				}
			}
			public uint Count
			{
				get
				{
					return this.result.Count;
				}
				set
				{
					this.SetCount(value);
				}
			}
			public IPopsicleList<ShakeTranImgGetItem> ImgUrlListList
			{
				get
				{
					return this.PrepareBuilder().imgUrlList_;
				}
			}
			public int ImgUrlListCount
			{
				get
				{
					return this.result.ImgUrlListCount;
				}
			}
			public SKBuiltinBuffer_t Buffer
			{
				get
				{
					return this.result.Buffer;
				}
				set
				{
					this.SetBuffer(value);
				}
			}
			public string Title
			{
				get
				{
					return this.result.Title;
				}
				set
				{
					this.SetTitle(value);
				}
			}
			public Builder()
			{
				this.result = ShakeTranImgGetResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(ShakeTranImgGetResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private ShakeTranImgGetResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					ShakeTranImgGetResponse other = this.result;
					this.result = new ShakeTranImgGetResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override ShakeTranImgGetResponse.Builder Clear()
			{
				this.result = ShakeTranImgGetResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override ShakeTranImgGetResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new ShakeTranImgGetResponse.Builder(this.result);
				}
				return new ShakeTranImgGetResponse.Builder().MergeFrom(this.result);
			}
			public override ShakeTranImgGetResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override ShakeTranImgGetResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is ShakeTranImgGetResponse)
				{
					return this.MergeFrom((ShakeTranImgGetResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override ShakeTranImgGetResponse.Builder MergeFrom(ShakeTranImgGetResponse other)
			{
				return this;
			}
			public override ShakeTranImgGetResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override ShakeTranImgGetResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(ShakeTranImgGetResponse._shakeTranImgGetResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = ShakeTranImgGetResponse._shakeTranImgGetResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 18u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseResponse.Builder builder = BaseResponse.CreateBuilder();
							if (this.result.hasBaseResponse)
							{
								builder.MergeFrom(this.BaseResponse);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseResponse = builder.BuildPartial();
							continue;
						}
						if (num3 == 18u)
						{
							this.result.hasPageUrl = input.ReadString(ref this.result.pageUrl_);
							continue;
						}
					}
					else
					{
						if (num3 <= 34u)
						{
							if (num3 == 24u)
							{
								this.result.hasCount = input.ReadUInt32(ref this.result.count_);
								continue;
							}
							if (num3 == 34u)
							{
								input.ReadMessageArray<ShakeTranImgGetItem>(num, text, this.result.imgUrlList_, ShakeTranImgGetItem.DefaultInstance, extensionRegistry);
								continue;
							}
						}
						else
						{
							if (num3 == 42u)
							{
								SKBuiltinBuffer_t.Builder builder2 = SKBuiltinBuffer_t.CreateBuilder();
								if (this.result.hasBuffer)
								{
									builder2.MergeFrom(this.Buffer);
								}
								input.ReadMessage(builder2, extensionRegistry);
								this.Buffer = builder2.BuildPartial();
								continue;
							}
							if (num3 == 50u)
							{
								this.result.hasTitle = input.ReadString(ref this.result.title_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public ShakeTranImgGetResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public ShakeTranImgGetResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public ShakeTranImgGetResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public ShakeTranImgGetResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public ShakeTranImgGetResponse.Builder SetPageUrl(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasPageUrl = true;
				this.result.pageUrl_ = value;
				return this;
			}
			public ShakeTranImgGetResponse.Builder ClearPageUrl()
			{
				this.PrepareBuilder();
				this.result.hasPageUrl = false;
				this.result.pageUrl_ = "";
				return this;
			}
			public ShakeTranImgGetResponse.Builder SetCount(uint value)
			{
				this.PrepareBuilder();
				this.result.hasCount = true;
				this.result.count_ = value;
				return this;
			}
			public ShakeTranImgGetResponse.Builder ClearCount()
			{
				this.PrepareBuilder();
				this.result.hasCount = false;
				this.result.count_ = 0u;
				return this;
			}
			public ShakeTranImgGetItem GetImgUrlList(int index)
			{
				return this.result.GetImgUrlList(index);
			}
			public ShakeTranImgGetResponse.Builder SetImgUrlList(int index, ShakeTranImgGetItem value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.imgUrlList_[index] = value;
				return this;
			}
			public ShakeTranImgGetResponse.Builder SetImgUrlList(int index, ShakeTranImgGetItem.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.imgUrlList_[index] = builderForValue.Build();
				return this;
			}
			public ShakeTranImgGetResponse.Builder AddImgUrlList(ShakeTranImgGetItem value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.imgUrlList_.Add(value);
				return this;
			}
			public ShakeTranImgGetResponse.Builder AddImgUrlList(ShakeTranImgGetItem.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.imgUrlList_.Add(builderForValue.Build());
				return this;
			}
			public ShakeTranImgGetResponse.Builder AddRangeImgUrlList(IEnumerable<ShakeTranImgGetItem> values)
			{
				this.PrepareBuilder();
				this.result.imgUrlList_.Add(values);
				return this;
			}
			public ShakeTranImgGetResponse.Builder ClearImgUrlList()
			{
				this.PrepareBuilder();
				this.result.imgUrlList_.Clear();
				return this;
			}
			public ShakeTranImgGetResponse.Builder SetBuffer(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBuffer = true;
				this.result.buffer_ = value;
				return this;
			}
			public ShakeTranImgGetResponse.Builder SetBuffer(SKBuiltinBuffer_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBuffer = true;
				this.result.buffer_ = builderForValue.Build();
				return this;
			}
			public ShakeTranImgGetResponse.Builder MergeBuffer(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBuffer && this.result.buffer_ != SKBuiltinBuffer_t.DefaultInstance)
				{
					this.result.buffer_ = SKBuiltinBuffer_t.CreateBuilder(this.result.buffer_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.buffer_ = value;
				}
				this.result.hasBuffer = true;
				return this;
			}
			public ShakeTranImgGetResponse.Builder ClearBuffer()
			{
				this.PrepareBuilder();
				this.result.hasBuffer = false;
				this.result.buffer_ = null;
				return this;
			}
			public ShakeTranImgGetResponse.Builder SetTitle(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasTitle = true;
				this.result.title_ = value;
				return this;
			}
			public ShakeTranImgGetResponse.Builder ClearTitle()
			{
				this.PrepareBuilder();
				this.result.hasTitle = false;
				this.result.title_ = "";
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int PageUrlFieldNumber = 2;
		public const int CountFieldNumber = 3;
		public const int ImgUrlListFieldNumber = 4;
		public const int BufferFieldNumber = 5;
		public const int TitleFieldNumber = 6;
		private static readonly ShakeTranImgGetResponse defaultInstance;
		private static readonly string[] _shakeTranImgGetResponseFieldNames;
		private static readonly uint[] _shakeTranImgGetResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasPageUrl;
		private string pageUrl_ = "";
		private bool hasCount;
		private uint count_;
		private PopsicleList<ShakeTranImgGetItem> imgUrlList_ = new PopsicleList<ShakeTranImgGetItem>();
		private bool hasBuffer;
		private SKBuiltinBuffer_t buffer_;
		private bool hasTitle;
		private string title_ = "";
		private int memoizedSerializedSize = -1;
		public static ShakeTranImgGetResponse DefaultInstance
		{
			get
			{
				return ShakeTranImgGetResponse.defaultInstance;
			}
		}
		public override ShakeTranImgGetResponse DefaultInstanceForType
		{
			get
			{
				return ShakeTranImgGetResponse.DefaultInstance;
			}
		}
		protected override ShakeTranImgGetResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public string PageUrl
		{
			get
			{
				return this.pageUrl_;
			}
		}
		public uint Count
		{
			get
			{
				return this.count_;
			}
		}
		public IList<ShakeTranImgGetItem> ImgUrlListList
		{
			get
			{
				return this.imgUrlList_;
			}
		}
		public int ImgUrlListCount
		{
			get
			{
				return this.imgUrlList_.Count;
			}
		}
		public SKBuiltinBuffer_t Buffer
		{
			get
			{
				return this.buffer_ ?? SKBuiltinBuffer_t.DefaultInstance;
			}
		}
		public string Title
		{
			get
			{
				return this.title_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseResponse && this.hasCount && this.BaseResponse.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasPageUrl)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.PageUrl);
				}
				if (this.hasCount)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.Count);
				}
				using (IEnumerator<ShakeTranImgGetItem> enumerator = this.ImgUrlListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						ShakeTranImgGetItem current = enumerator.get_Current();
						num += CodedOutputStream.ComputeMessageSize(4, current);
					}
				}
				if (this.hasBuffer)
				{
					num += CodedOutputStream.ComputeMessageSize(5, this.Buffer);
				}
				if (this.hasTitle)
				{
					num += CodedOutputStream.ComputeStringSize(6, this.Title);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private ShakeTranImgGetResponse()
		{
		}
		public ShakeTranImgGetItem GetImgUrlList(int index)
		{
			return this.imgUrlList_[index];
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] shakeTranImgGetResponseFieldNames = ShakeTranImgGetResponse._shakeTranImgGetResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, shakeTranImgGetResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasPageUrl)
			{
				output.WriteString(2, shakeTranImgGetResponseFieldNames[4], this.PageUrl);
			}
			if (this.hasCount)
			{
				output.WriteUInt32(3, shakeTranImgGetResponseFieldNames[2], this.Count);
			}
			if (this.imgUrlList_.Count > 0)
			{
				output.WriteMessageArray<ShakeTranImgGetItem>(4, shakeTranImgGetResponseFieldNames[3], this.imgUrlList_);
			}
			if (this.hasBuffer)
			{
				output.WriteMessage(5, shakeTranImgGetResponseFieldNames[1], this.Buffer);
			}
			if (this.hasTitle)
			{
				output.WriteString(6, shakeTranImgGetResponseFieldNames[5], this.Title);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasPageUrl)
			{
				num ^= this.pageUrl_.GetHashCode();
			}
			if (this.hasCount)
			{
				num ^= this.count_.GetHashCode();
			}
			using (IEnumerator<ShakeTranImgGetItem> enumerator = this.imgUrlList_.GetEnumerator())
			{
				while (enumerator.MoveNext())
				{
					ShakeTranImgGetItem current = enumerator.get_Current();
					num ^= current.GetHashCode();
				}
			}
			if (this.hasBuffer)
			{
				num ^= this.buffer_.GetHashCode();
			}
			if (this.hasTitle)
			{
				num ^= this.title_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			ShakeTranImgGetResponse shakeTranImgGetResponse = object_0 as ShakeTranImgGetResponse;
			if (shakeTranImgGetResponse == null)
			{
				return false;
			}
			if (this.hasBaseResponse != shakeTranImgGetResponse.hasBaseResponse || (this.hasBaseResponse && !this.baseResponse_.Equals(shakeTranImgGetResponse.baseResponse_)))
			{
				return false;
			}
			if (this.hasPageUrl != shakeTranImgGetResponse.hasPageUrl || (this.hasPageUrl && !this.pageUrl_.Equals(shakeTranImgGetResponse.pageUrl_)))
			{
				return false;
			}
			if (this.hasCount != shakeTranImgGetResponse.hasCount || (this.hasCount && !this.count_.Equals(shakeTranImgGetResponse.count_)))
			{
				return false;
			}
			if (this.imgUrlList_.Count != shakeTranImgGetResponse.imgUrlList_.Count)
			{
				return false;
			}
			for (int i = 0; i < this.imgUrlList_.Count; i++)
			{
				if (!this.imgUrlList_[i].Equals(shakeTranImgGetResponse.imgUrlList_[i]))
				{
					return false;
				}
			}
			return this.hasBuffer == shakeTranImgGetResponse.hasBuffer && (!this.hasBuffer || this.buffer_.Equals(shakeTranImgGetResponse.buffer_)) && (this.hasTitle == shakeTranImgGetResponse.hasTitle && (!this.hasTitle || this.title_.Equals(shakeTranImgGetResponse.title_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<ShakeTranImgGetResponse, ShakeTranImgGetResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<ShakeTranImgGetResponse, ShakeTranImgGetResponse.Builder>.PrintField("PageUrl", this.hasPageUrl, this.pageUrl_, writer);
			GeneratedMessageLite<ShakeTranImgGetResponse, ShakeTranImgGetResponse.Builder>.PrintField("Count", this.hasCount, this.count_, writer);
			GeneratedMessageLite<ShakeTranImgGetResponse, ShakeTranImgGetResponse.Builder>.PrintField<ShakeTranImgGetItem>("ImgUrlList", this.imgUrlList_, writer);
			GeneratedMessageLite<ShakeTranImgGetResponse, ShakeTranImgGetResponse.Builder>.PrintField("Buffer", this.hasBuffer, this.buffer_, writer);
			GeneratedMessageLite<ShakeTranImgGetResponse, ShakeTranImgGetResponse.Builder>.PrintField("Title", this.hasTitle, this.title_, writer);
		}
		public static ShakeTranImgGetResponse ParseFrom(byte[] data)
		{
			return ShakeTranImgGetResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private ShakeTranImgGetResponse MakeReadOnly()
		{
			this.imgUrlList_.MakeReadOnly();
			return this;
		}
		public static ShakeTranImgGetResponse.Builder CreateBuilder()
		{
			return new ShakeTranImgGetResponse.Builder();
		}
		public override ShakeTranImgGetResponse.Builder ToBuilder()
		{
			return ShakeTranImgGetResponse.CreateBuilder(this);
		}
		public override ShakeTranImgGetResponse.Builder CreateBuilderForType()
		{
			return new ShakeTranImgGetResponse.Builder();
		}
		public static ShakeTranImgGetResponse.Builder CreateBuilder(ShakeTranImgGetResponse prototype)
		{
			return new ShakeTranImgGetResponse.Builder(prototype);
		}
		static ShakeTranImgGetResponse()
		{
			ShakeTranImgGetResponse.defaultInstance = new ShakeTranImgGetResponse().MakeReadOnly();
			ShakeTranImgGetResponse._shakeTranImgGetResponseFieldNames = new string[]
			{
				"BaseResponse",
				"Buffer",
				"Count",
				"ImgUrlList",
				"PageUrl",
				"Title"
			};
			ShakeTranImgGetResponse._shakeTranImgGetResponseFieldTags = new uint[]
			{
				10u,
				42u,
				24u,
				34u,
				18u,
				50u
			};
			object.ReferenceEquals(micromsg.Proto.ShakeTranImgGetResponse.Descriptor, null);
		}
	}
}
